package cn.edu.zut.cs.Model;

import org.springframework.stereotype.Component;

@Component
public class Student {
    private String snum;
    private String name;
    private String sex;
    private int mark;
    private String grade;

    public String getSnum() {
        return snum;
    }

    public void setSnum(String snum) {
        this.snum = snum;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getMark() {
        return mark;
    }

    public void setMark(int mark) {
        this.mark = mark;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    @Override
    public String toString() {
        return "Student{" +
                "snum='" + snum + '\'' +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", mark=" + mark +
                ", grade='" + grade + '\'' +
                '}';
    }
}
